package com.accelstack.cmp.repository;

import com.accelstack.cmp.entity.NetworkInterface;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 网卡Repository
 */
@Repository
public interface NetworkInterfaceRepository extends JpaRepository<NetworkInterface, Long> {
    
    /**
     * 根据服务器ID查询网卡列表
     */
    List<NetworkInterface> findByServerId(Long serverId);
}

